// 基于template/src/widgets/{{appEntities}}/{{ctrls@FORM}}-form/{{spinalCase ctrl.codeName}}-form-model.ts.hbs生成
import { IEditFormModel, IFormStore, IParam } from '@/core';
function getModel(): IEditFormModel {
	return {
		name: 'form',
		caption: '',
		codeName: 'Main',
		enableAutoSave: false,
		entityCodeName: 'AUTH_PROVIDER',
		keyPSAppDEField: 'Id',
		majorPSAppDEField: 'Name',
		cssName: '',
		controlType: 'FORM',
		formStyle: '',
		valueRule: getValueRule(),
		createDefaultItems: getCreateDefaultItems(),
		updateDefaultItems: getUpdateDefaultItems(),
		detailModel: getDetailModel(),
		uiEngineModel: [
			{
				name: 'engine_form',
				triggerType: 'CTRLEVENT',
				logicType: 'APPVIEWENGINE',
				eventNames: 'LOAD;SAVE;REMOVE',
				scriptCode: ``,
				entityCodeName: '',
				logicName: ``,
			},
		],
	};
}
function getValueRule() {
	return [];
}

function getCreateDefaultItems() {
	return [
		{
			createDV: '0',
			createDVT: '',
			property: 'disabled',
			valueFormat: '',
			dataType: 9,
		},
	];
}

function getUpdateDefaultItems() {
	return [];
}
function getDetailModel() {
	return {
		formpage1: {
			caption: '基本信息',
			captionItemName: '',
			name: 'formpage1',
			codeName: 'formpage1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMPAGE',
			showCaption: false,
			enableAnchor: false,
			showMoreMode: 0,
		},
		group1: {
			caption: '外部认证基本信息',
			captionItemName: '',
			name: 'group1',
			codeName: 'group1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'GROUPPANEL',
			showCaption: false,
			enableAnchor: false,
			showMoreMode: 0,
			showMoreItems: [],
		},
		grouppanel1: {
			caption: '请求配置',
			captionItemName: '',
			name: 'grouppanel1',
			codeName: 'grouppanel1',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'GROUPPANEL',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			showMoreItems: [],
		},
		id: {
			caption: '应用标识',
			captionItemName: '',
			name: 'id',
			codeName: 'id',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Id',
			dataType: '25',
			required: false,
			enableCond: 1,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 12, colMD: 12 },
		},
		name: {
			caption: '应用名称',
			captionItemName: '',
			name: 'name',
			codeName: 'name',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Name',
			dataType: '25',
			required: true,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 12, colMD: 12 },
		},
		authentication_uri: {
			caption: '认证地址',
			captionItemName: '',
			name: 'authentication_uri',
			codeName: 'authentication_uri',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Authentication_uri',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 12, colMD: 12 },
		},
		authentication_method: {
			caption: '认证方式',
			captionItemName: '',
			name: 'authentication_method',
			codeName: 'authentication_method',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Authentication_method',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			codeListTag: 'authentication__Auth_provider_request_method',
			layout: { parentLayout: 'TABLE_24COL', colLG: 12, colMD: 12 },
		},
		disabled: {
			caption: '是否禁用',
			captionItemName: '',
			name: 'disabled',
			codeName: 'disabled',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Disabled',
			dataType: '9',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 12, colMD: 12 },
		},
		sort: {
			caption: '排序',
			captionItemName: '',
			name: 'sort',
			codeName: 'sort',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Sort',
			dataType: '9',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 12, colMD: 12 },
		},
		base_config: {
			caption: '认证基础配置',
			captionItemName: '',
			name: 'base_config',
			codeName: 'base_config',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Base_config',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			editRules: {
				editorType: 'TEXTAREA_10',
			},
			layout: { parentLayout: 'TABLE_24COL', colLG: 24, colMD: 24 },
		},
		grouppanel2: {
			caption: '响应配置',
			captionItemName: '',
			name: 'grouppanel2',
			codeName: 'grouppanel2',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'GROUPPANEL',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			showMoreItems: [],
		},
		response_type: {
			caption: '响应类型',
			captionItemName: '',
			name: 'response_type',
			codeName: 'response_type',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Response_type',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			codeListTag: 'authentication__Auth_provider_response_type',
			layout: { parentLayout: 'TABLE_24COL', colLG: 12, colMD: 12 },
		},
		response_success_flag: {
			caption: '响应成功标记',
			captionItemName: '',
			name: 'response_success_flag',
			codeName: 'response_success_flag',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Response_success_flag',
			dataType: '25',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			layout: { parentLayout: 'TABLE_24COL', colLG: 12, colMD: 12 },
		},
		response_config: {
			caption: '认证响应配置',
			captionItemName: '',
			name: 'response_config',
			codeName: 'response_config',
			disabled: false,
			visible: true,
			detailStyle: 'DEFAULT',
			detailType: 'FORMITEM',
			showCaption: true,
			enableAnchor: false,
			showMoreMode: 0,
			valueFormat: '',
			fieldCodeName: 'Response_config',
			dataType: '21',
			required: false,
			enableCond: 3,
			ignoreInput: 0,
			convertToCodeItemText: false,
			editRules: {
				editorType: 'TEXTAREA_10',
			},
			layout: { parentLayout: 'TABLE_24COL', colLG: 24, colMD: 24 },
		},
	};
}
export const model = getModel();
